package com.itheima02.day03test;

/**
 * @author 刘全
 * @date 2021/7/18
 */
public class test1 {
    public static void main(String[] args) {
        Demo d = new Demo();
        d.function().showB();
    }
}

class Demo {
    // 补全代码
    public InterB function(){
        InterB i = new InterB() {
            @Override
            public void showB() {
                System.out.println("我是苏晋丕爸爸");
            }
        };
        return i;
    }
}

interface InterB {
    void showB();
}
